ConnectionUpdate

sealed class ConnectionUpdate : CoreConnectionUpdate

To notify client application about the progress of the relevant lock functions (unlock, lock, prepareEndRental).

Instances of the ConnectionUpdate are dispatched in the callback onUpdate: (ConnectionUpdate) -> Unit. ConnectionUpdate doesn't interrupt the flow, only serves as a tool to advertise progress.

Parameters

description

String value for logging purposes

Inheritors

Types

Link copied to clipboard

The bluetooth device notified the app it started locking

Link copied to clipboard

The bluetooth device notified the app it started unlocking

Link copied to clipboard

The connection to the bluetooth device has been established. Note that if the device has been previously connected, this ConnectionUpdate will be called at the start of any unlock, lock, or prepareEndRental

Link copied to clipboard

The searched device has been found and is close enough to establish connection. The app has initiated establishing of connection to the particular bluetooth device.

Link copied to clipboard

During bike.donkey.lockkit.DonkeyLockKit.prepareEndRental after making sure the device is properly locked the app does ExtraLockCheck to make sure it stays locked. This lock check should follow with Result in the onResult callback.

Link copied to clipboard

The bluetooth device notified the app it had enabled the lock mechanism and user needs to manually push the lock to lock it

Link copied to clipboard
data class ReadCharacteristics(val initialSensor: Int, val lockSwRevision: String?) : ConnectionUpdate

The app has read the characteristic data from the bluetooth device in order to determine next action

Link copied to clipboard

The app has initiated bluetooth scan for the particular bluetooth device

Link copied to clipboard

The app has sent eKey data to the bluetooth device to perform the desired action

Link copied to clipboard
data class WeakSignal(val rssi: Int) : ConnectionUpdate

The searched device has been found, but the rssi of the advertisement is too weak and therefore cannot establish connection yet.

Properties

Link copied to clipboard
open override val description: String